import request from '@/utils/request'

// 获取噪音监测点列表
export function getNoiseMonitoringPoints() {
  return request({
    url: '/system/noise/monitoring-points',
    method: 'get'
  })
}

// 获取噪音污染热力图数据
export function getNoiseHeatmapData(parkId, startTime, endTime) {
  return request({
    url: '/system/noise/noise-heatmap-data',
    method: 'get',
    params: {
      parkId,
      startTime,
      endTime
    }
  })
}

// 获取监测点详情
export function getMonitoringPoint(pointId) {
  return request({
    url: '/system/noise/monitoring-point/' + pointId,
    method: 'get'
  })
}